﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Tasks.Common.Entitys;

namespace Tasks.UI.Models.SceneryTrade
{
    /// <summary>
    /// 景点销售模型
    /// </summary>
    public class SellModel:BaseManageModel
    {
        /// <summary>
        /// 订单条目数据
        /// </summary>
        public IList<SceneryTicketOrderItem> OrderItems { get; set; }

        public int SceneryTicketID { get; set; }

        /// <summary>
        /// 景点价格json
        /// </summary>
        public string JsonPrices { get; set; }

        public string Remark { get; set; }

        /// <summary>
        /// 景点信息
        /// </summary>
        public Scenery Scenery { get; set; }
        /// <summary>
        /// 订单信息
        /// </summary>
        public SceneryTicketOrder SceneryTicketOrder { get; set; }

        public int[] TicketID2 { get; set; }

        /// <summary>
        /// 门票ID
        /// </summary>
        public int[] TicketID { get; set; }
        /// <summary>
        /// 门票价格
        /// </summary>
        public decimal[] TicketPrice { get; set; }
        /// <summary>
        /// 门票数量
        /// </summary>
        public int[] TicketCount { get; set; }
        /// <summary>
        /// 门票金额
        /// </summary>
        public decimal[] TicketTotalsPrice { get; set; }

        #region SceneryTicketOrderID

        private Int32 m_sceneryTicketOrderID;

        /// <summary>Gets or sets SceneryTicketOrderID</summary>
        public Int32 SceneryTicketOrderID
        {
            get { return m_sceneryTicketOrderID; }
            set { m_sceneryTicketOrderID = value; }
        }

        #endregion

        #region SceneryName

        private String m_sceneryName;

        /// <summary>Gets or sets SceneryName</summary>
        public String SceneryName
        {
            get { return m_sceneryName; }
            set { m_sceneryName = value; }
        }

        #endregion

        /// <summary>
        /// 景点位置
        /// </summary>
        public string SceneryPosition { get; set; }

        #region SceneryID

        private Int32 m_sceneryID;

        /// <summary>Gets or sets SceneryID</summary>
        public Int32 SceneryID
        {
            get { return m_sceneryID; }
            set { m_sceneryID = value; }
        }

        #endregion

        #region OrderTime

        private DateTime m_orderTime;

        /// <summary>Gets or sets OrderTime</summary>
        public DateTime OrderTime
        {
            get { return m_orderTime; }
            set { m_orderTime = value; }
        }

        #endregion

        #region InTime

        private DateTime m_inTime;

        /// <summary>Gets or sets InTime</summary>
        public DateTime InTime
        {
            get { return m_inTime; }
            set { m_inTime = value; }
        }

        #endregion

        #region ClientName

        private String m_clientName;

        /// <summary>Gets or sets ClientName</summary>
        public String ClientName
        {
            get { return m_clientName; }
            set { m_clientName = value; }
        }

        #endregion

        public string ClientTel { get; set; }
        public string ClientIDCard { get; set; }

        #region ClientID

        private Int32 m_clientID;

        /// <summary>Gets or sets ClientID</summary>
        public Int32 ClientID
        {
            get { return m_clientID; }
            set { m_clientID = value; }
        }

        #endregion

        #region PaymentMode

        private Int32 m_paymentMode;

        /// <summary>Gets or sets PaymentMode</summary>
        public Int32 PaymentMode
        {
            get { return m_paymentMode; }
            set { m_paymentMode = value; }
        }

        #endregion

        /// <summary>
        /// 订单的结算方式
        /// </summary>
        public int SettlementMode { get; set; }

        #region ConfirmTime

        private DateTime m_confirmTime;

        /// <summary>Gets or sets ConfirmTime</summary>
        public DateTime ConfirmTime
        {
            get { return m_confirmTime; }
            set { m_confirmTime = value; }
        }

        #endregion

        #region OrderNo

        private String m_OrderNo;

        /// <summary>Gets or sets OrderNo</summary>
        public String OrderNo
        {
            get { return m_OrderNo; }
            set { m_OrderNo = value; }
        }

        #endregion

        #region PriceStandard

        private Int32 m_priceStandard;

        /// <summary>Gets or sets PriceStandard</summary>
        public Int32 PriceStandard
        {
            get { return m_priceStandard; }
            set { m_priceStandard = value; }
        }

        #endregion

        #region SupplierID

        private Int32 m_supplierID;

        /// <summary>Gets or sets SupplierID</summary>
        public Int32 SupplierID
        {
            get { return m_supplierID; }
            set { m_supplierID = value; }
        }

        #endregion

        #region State

        private Int32 m_state;

        /// <summary>Gets or sets State</summary>
        public Int32 State
        {
            get { return m_state; }
            set { m_state = value; }
        }

        #endregion

        #region OwnerID

        private Int32 m_ownerID;

        /// <summary>Gets or sets OwnerID</summary>
        public Int32 OwnerID
        {
            get { return m_ownerID; }
            set { m_ownerID = value; }
        }

        #endregion

        public EnterpriseMember Member { get; set; }

        /// <summary>
        /// 当前景点门票价格信息
        /// </summary>
        public IList<SceneryTicketDetail> PriceDetail { get; set; }
        /// <summary>
        /// 团号
        /// </summary>
        public string TeamNo { get; set; }

        /// <summary>
        /// 客源地
        /// </summary>
        public string ClientSource { get; set; }

        /// <summary>
        /// 客户类型  1 散客 2 团队
        /// </summary>
        public int ClientType { get; set; }

    }
}